package com.service.impl;

import com.bean.HwStuAttach;
import com.dao.HwStuAttachDao;
import com.dao.impl.HwStuAttachDaoImpl;
import com.service.HwStuAttachService;
import com.utils.Page;

public class HwStuAttachServiceImpl implements HwStuAttachService {
    HwStuAttachDao hwStuAttachDao=new HwStuAttachDaoImpl();
    @Override
    public Page<HwStuAttach> page(int pageNo, int pageSize, String content) {
        return null;
    }

    @Override
    public HwStuAttach selectBy(HwStuAttach record) {
        return hwStuAttachDao.selectBy(record);
    }

    @Override
    public int deleteById(Integer id) {
        return -1;
    }

    @Override
    public int updeteInfo(HwStuAttach record) {
        int status=0;
        if (hwStuAttachDao.updateByPrimaryKey(record)==-1){
            status=1;
        }
        return status;
    }

    @Override
    public int insert(HwStuAttach record) {
        int status=0;
        if (hwStuAttachDao.insert(record)==-1){
            status=1;
        }
        return status;
    }
}
